<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>支付</title>
</head>

<body>
正在跳转支付
<div style="z-index: -999;" id="pay-container"></div>

{$mweb_url}
</body>
<script>
    // 使用iframe解决微信H5支付跳转问题
    // const iframe = document.createElement('iframe')
    // iframe.style.display = 'none'
    // iframe.style.zIndex = -999
    // iframe.setAttribute('src', '{$mweb_url|raw}')
    // iframe.setAttribute('id', 'wechatPay')
    // iframe.setAttribute('sandbox', 'allow-top-navigation allow-scripts')
    // document.querySelector('#pay-container').appendChild(iframe)
    // window.location.replace(response.data.mweb_url)
    window.location.href = "{$mweb_url|raw}"
</script>
</html>